﻿<Application x:Class="UBConDemo.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:skin="clr-namespace:UBCon.Ribbon.SkinManagers;assembly=UBCon.Ribbon"
             StartupUri="Views\UBConShell.xaml">
    <Application.Resources>
        
       
        <SolidColorBrush x:Key="MouseOverBrush" Color="#2B579A" />

        

        <DrawingImage x:Key="LeftArrowImage_DefaultState">
            <DrawingImage.Drawing>
                <GeometryDrawing Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z" 
                                 Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedMenuBackgroundBrush}}">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedMenuBackgroundBrush}}" 
                             Thickness="0.6" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>

        <DrawingImage x:Key="LeftArrowImage_MouseOverState">
            <DrawingImage.Drawing>
                <GeometryDrawing Geometry="M15,4 L3,4 L7,0 L5,0 L0,5 L5,10 L7,10 L3,6 L15,6z" 
                                 Brush="{StaticResource ResourceKey=MouseOverBrush}">
                    <GeometryDrawing.Pen>
                        <Pen Brush="{StaticResource ResourceKey=MouseOverBrush}" 
                             Thickness="0.6" />
                    </GeometryDrawing.Pen>
                </GeometryDrawing>
            </DrawingImage.Drawing>
        </DrawingImage>


        <ControlTemplate x:Key="CircularButtonTemplate"
                     TargetType="{x:Type Button}">
            <Grid Height="{TemplateBinding Height}"
              Width="{TemplateBinding Width}">
                <Ellipse Height="{TemplateBinding Height}" 
                     Width="{TemplateBinding Width}" 
                     Stroke="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=SelectedMenuBackgroundBrush}}"
                     StrokeThickness="2"
                     x:Name="ellipse"
                     Fill="{DynamicResource ResourceKey={ComponentResourceKey TypeInTargetAssembly={x:Type skin:SkinManager}, ResourceId=TransparentBrush}}"/>
                <Image  Source="{StaticResource ResourceKey=LeftArrowImage_DefaultState}"
                    Margin="7"
                    x:Name="image"/>
            </Grid>
            <ControlTemplate.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="Source" Value="{StaticResource ResourceKey=LeftArrowImage_MouseOverState}"
                        TargetName="image"/>
                    <Setter Property="Stroke" Value="{StaticResource ResourceKey=MouseOverBrush}"
                        TargetName="ellipse"/>
                </Trigger>
            </ControlTemplate.Triggers>
        </ControlTemplate>

    </Application.Resources>
</Application>
